package com.ruoyi.system.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.List;

@Data
@TableName("employee")
public class Employee {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private String position;
    private String department;

    @TableLogic
    private Integer deleted;

    // 关联的服务记录列表(多对多)
    @TableField(exist = false)
    private List<ServiceRecord> serviceRecords;

    public Long getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public List<ServiceRecord> getServiceRecords() {
        return serviceRecords;
    }

    public String getDepartment() {
        return department;
    }

    public String getPosition() {
        return position;
    }

    public void setServiceRecords(List<ServiceRecord> serviceRecords) {
        this.serviceRecords = serviceRecords;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }
}